package com.gupao.coupon.portal.couponportal.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.rpc.RpcContext;
import org.gupao.normal.user.IHelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Mic
 * @公众号： 跟着Mic学架构
 * @官网： https://ke.gupaoedu.cn
 * @Org: 咕泡教育
 *
 **/
@RestController
public class HelloControoler {

    @DubboReference
    IHelloService helloService;

    @GetMapping("/say")
    public String say(){

        RpcContext.getClientAttachment().setAttachment("p","消费端设置的属性");
        return helloService.say("Mic");
    }

}
